package controllers

import (
	"github.com/kataras/iris/v12"
	"irisfarm/app/core/output"
)

type BaseController struct {
	ctx    iris.Context
	output output.Output
}

// InitContext 初始化相关controller需要的数据
func (c *BaseController) InitContext(ctx iris.Context) {
	c.ctx = ctx
	c.output = output.Output{Ctx: c.ctx}
}
